home *** CD-ROM | disk | FTP | other *** search
/ Grand Slam 3 / Grand Slam 3.iso / 011 / z-cs100a.arj / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-12-19  |  4KB  |  141 lines

  1. @echo off
  2. cls
  3. Rem /  Batch File Installer for
  4. Rem /      Creature Shock Update
  5. Rem /      version 1.00a
  6. Rem /  (c) 1994 Virgin Interactive Entertainment
  7. Rem /  KJ12.19
  8.  
  9. if exist SHOCK_UP.EXE goto NOERR
  10. goto ERR3
  11.  
  12. :NOERR
  13. if %1x==x goto TryDefault
  14. if exist %1\SHOCK.EXE goto DO_IT
  15. goto ERR
  16.  
  17. :TryDefault
  18. if exist c:\crshock\shock.exe goto CONTINUE
  19. if exist c:\crshock\creature.cfg goto Err
  20. goto usage
  21.  
  22. :CONTINUE
  23. echo Detected default install directory. 
  24. echo.
  25. set CRSHOCKPATH=C:\CRSHOCK
  26. if %CRSHOCKPATH%==C:\CRSHOCK goto DO_IT2
  27. goto ERR2
  28.  
  29. :DO_IT
  30. set CRSHOCKPATH=%1
  31. if %CRSHOCKPATH%==%1 goto DO_IT2 
  32. goto ERR2
  33.  
  34. :DO_IT2
  35. echo One moment please...
  36. echo.
  37. del %CRSHOCKPATH%\shock.exe 
  38. echo Loading Creature Shock update information...
  39. copy shock_up.exe %CRSHOCKPATH% > NUL
  40. echo Updating old files... 
  41. echo.
  42. %CRSHOCKPATH%\shock_up %CRSHOCKPATH% 
  43. pause
  44. del %CRSHOCKPATH%\shock_up.exe
  45. if exist %CRSHOCKPATH%\read.me goto SUCCESS
  46. goto ERROR
  47.  
  48. :ERR3
  49. echo.
  50. echo           ────────  SHOCK_UP.EXE file not found  ─────────
  51. echo.
  52. echo           Please ensure that the install is run from the 
  53. echo           floppy disk drive.
  54. echo.
  55. echo           For example, you should be typing:
  56. echo           A:
  57. echo           INSTALL
  58. echo.
  59. echo.
  60. goto ERROR
  61.  
  62. :ERR2
  63. echo.
  64. echo           ───────  Not enough environment space   ───────
  65. echo                  to finish installation of update.
  66. echo.
  67. echo            Please increase the environment space before 
  68. echo            running the install. 
  69. echo.
  70. echo            For example, add: 
  71. echo            SHELL=C:\DOS\COMMAND.COM C:\DOS\ /p /e:256
  72. echo            to your CONFIG.SYS file.
  73. echo.
  74. echo            Do NOT run the install from Windows.
  75. echo.
  76. echo.
  77. goto ERROR
  78.  
  79. :ERR
  80. echo. 
  81. echo      *** Could not find SHOCK.EXE file in: C:\CRSHOCK 
  82. echo          Either the wrong path was specified or
  83. echo          you may have originally installed Creature Shock
  84. echo          with the "Minimum Installation" option. Try reinstalling
  85. echo          Creature Shock again from the CD and select either the
  86. echo          "Normal" or "Maximum" installation options before
  87. echo          re-running this update install program.
  88. goto END
  89.  
  90. :USAGE
  91. echo. 
  92. echo      Error: Creature Shock files could not be found.
  93. echo.
  94. echo      To update your installation of Creature Shock, type "INSTALL"
  95. echo      followed by a space and the name of the directory where the
  96. echo      Creature Shock files were originally installed.
  97. echo. 
  98. echo      For example, if the update files are located on a disk in
  99. echo      drive A:, and Creature Shock was originally installed to D:\CRSHOCK, 
  100. echo      the commands would look like this:
  101. echo. 
  102. echo      A:
  103. echo      INSTALL D:\CRSHOCK
  104. echo. 
  105. goto end
  106.  
  107. :ERROR
  108. echo           ─── Failed attempt to update Creature Shock ────
  109. echo.
  110. echo                  For assistance, please contact 
  111. echo                Virgin Interactive Entertainment's
  112. echo                        Technical Support
  113. echo                         (714) 833-1999
  114. goto end
  115.  
  116. :SUCCESS
  117. cls
  118. echo      ───────── Updated "Creature Shock" to version 1.00a ─────────
  119. echo.
  120. echo      Do NOT re-install Creature Shock from the CD-ROM disc or else
  121. echo      the updated files will be overwritten.  You MAY however run
  122. echo      the INSTALL program from the hard drive to reconfigure your
  123. echo      hardware setup.
  124. echo.
  125. echo      This install also copied a file called READ.ME to the directory
  126. echo      where Creature Shock is installed.  To view this file, just 
  127. echo      change to the %CRSHOCKPATH% directory and type EDIT READ.ME
  128. echo.
  129. echo      This update disk also contains a level select file that allows
  130. echo      you to jump to any level.  To install it, type "CRSET" and press
  131. echo      ENTER.
  132. echo.
  133. echo      To run the game, just change to the %CRSHOCKPATH% 
  134. echo      directory and type SHOCK
  135. echo.
  136. echo.
  137.  
  138. :END
  139. set CRSHOCKPATH=
  140. echo.
  141.